package fundamentals;

public class Incredible {
	private interface A {
		public void B();
	}
	public interface B extends A {
		public A A();
	}
	public static void main(String args[]) {
		B b = new B() {
			public void B() {
				System.out.println("B");
			}
			public B A() {
				System.out.println("A");
				return this;
			}
		};
	}
	
}
